export default {
	toast: function(title) {
		uni.showToast({
			title: title,
			duration: 2000,
			icon: 'none'
		});
	},
	paht: function(url, type) { //type：1跳转tabs 2跳转关闭当前页
		if (type) {
			if (type == 1) {
				uni.switchTab({
					url: url
				});
			} else if (type == 2) {
				uni.redirectTo({
					url: url
				});
			}
		} else {
			uni.navigateTo({
				url: url
			});
		}
	}
}